<template>
  <el-table
      :data="userData"
      style="width: 100%"
      border
      :default-sort = "{prop: 'date', order: 'descending'}"
  >
    <el-table-column
        prop="date"
        label="日期"
        sortable
        width="180">
    </el-table-column>
    <el-table-column
        prop="name"
        label="姓名"
        sortable
        width="180">
    </el-table-column>
    <el-table-column
        prop="address"
        label="地址">
    </el-table-column>
  </el-table>
</template>
<script>
export default {
  data() {
    return {
      userData:
          [
            {
              date: '2022-05-02',
              name: '明世隐3号',
              address: '江西省南昌市XXXXXX路1号'
            }, {
            date: '2022-05-04',
            name: '明世隐4号',
            address: '江西省南昌市XXXXXX路2号'
            }, {
              date: '2022-05-01',
              name: '明世隐1号',
              address: '江西省南昌市XXXXXX路4号'
            }, {
              date: '2022-05-03',
              name: '明世隐2号',
              address: '江西省南昌市XXXXXX路3号'
            }
          ]
    };
  },
  created() { //钩子函数页面加载完调用


  },
  methods: {




  }
};
</script>
